home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form frm10_4_4
- Caption = "10.4 Example 4"
- ClientHeight = 2640
- ClientLeft = 1155
- ClientTop = 1470
- ClientWidth = 2520
- BeginProperty Font
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 700
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- LinkTopic = "Form1"
- PaletteMode = 1 'UseZOrder
- ScaleHeight = 2640
- ScaleWidth = 2520
- Begin VB.PictureBox picOutput
- Height = 1815
- Left = 120
- ScaleHeight = 1755
- ScaleWidth = 2235
- TabIndex = 1
- Top = 720
- Width = 2295
- End
- Begin VB.CommandButton cmdDraw
- Caption = "Draw Quadrants"
- Height = 495
- Left = 480
- TabIndex = 0
- Top = 120
- Width = 1575
- End
- Attribute VB_Name = "frm10_4_4"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Private Sub cmdDraw_Click()
- Dim c As Single
- 'Draw quarters of circle and paint upper-left quadrant
- c = 2 * 3.14159
- picOutput.Cls
- picOutput.Scale (-3, 3)-(3, -3) 'Specify coordinate system
- picOutput.Circle (0, 0), 2, , -0.0000001 * c, -0.25 * c
- picOutput.FillStyle = 6 'Cross hatched
- picOutput.FillColor = vbMagenta
- picOutput.Circle (0, 0), 2, , -0.25 * c, -0.5 * c
- picOutput.FillStyle = 1 'Transparent
- picOutput.Circle (0, 0), 2, , -0.5 * c, -0.75 * c
- picOutput.Circle (0, 0), 2, , -0.75 * c, -1 * c
- End Sub
-